package cn.com.haopy.yue.ai.wx.utils;


import java.sql.Timestamp;
import java.text.SimpleDateFormat;
import java.util.*;

public class TimeZoneUtil {


    public static String Date2Str(Timestamp time) {
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        sdf.setTimeZone(TimeZone.getTimeZone("GMT+8"));
        return sdf.format(time);
    }


}
